
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>回收站</title>
</head>
<body>
    <h1>回收站</h1>
    <form method="post" action="{% url 'clearTrash' %}">
        {% csrf_token %}
        <button type="submit">清除回收站</button>
    </form>
    <ul>
        {% for obj in deleted_objects %}
            <li>
                {{ obj.container }} / {{ obj.object_name }} (删除于: {{ obj.deleted_at }})
                <form method="post" action="{% url 'restoreObject' obj.container obj.object_name %}" style="display:inline;">
                    {% csrf_token %}
                    <button type="submit">恢复</button>
                </form>
            </li>
        {% empty %}
            <li>回收站为空</li>
        {% endfor %}
    </ul>
</body>
</html>
